package com.smartum.mpr.client.presenter;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartum.mpr.client.event.TabClickHandler;
import com.smartum.mpr.client.view.ContentViewerView;


/**
 */
public class NewsViewerPresenter implements Presenter {
    public interface Display {
        Canvas getNewsViewerWidget();
    }

    private final Display display;
    private HandlerManager eventBus;

    public NewsViewerPresenter(Display display, HandlerManager eventBus) {
        this.display = display;
        this.eventBus = eventBus;
    }

    public void go(Tab container) {
        container.setPane(this.display.getNewsViewerWidget());
    }

    @Override
    public void bind() {
    }

    @Override
    public HandlerManager eventBus() {
        return this.eventBus;
    }
}
